/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.service.impl;

import com.rbh.risk.dao.SeverityLevelDao;
import com.rbh.risk.entity.SeverityLevel;
import com.rbh.risk.service.SeverityLevelService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("severityLevelService")
public class SeverityLevelServiceImpl implements SeverityLevelService {

    @Autowired
    private SeverityLevelDao severityLevelDao;

    @Transactional(readOnly = false)
    @Override
    public void insert(SeverityLevel severityLevel) {
        this.severityLevelDao.insert(severityLevel);
    }

    @Transactional(readOnly = false)
    @Override
    public void update(SeverityLevel severityLevel) {
        this.severityLevelDao.update(severityLevel);
    }

    @Transactional(readOnly = false)
    @Override
    public void delete(SeverityLevel severityLevel) {
        this.severityLevelDao.delete(severityLevel);
    }

    @Transactional(readOnly = true)
    @Override
    public SeverityLevel getById(Integer severityLevelId) {
        return this.severityLevelDao.getById(severityLevelId);
    }

    @Transactional(readOnly = true)
    @Override
    public List<SeverityLevel> getAll() {
        return this.severityLevelDao.getAll();
    }
}
